﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site1.Master" CodeBehind="list.aspx.vb" Inherits="NewDesigner.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    <br />
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="nd_dataSource" AllowSorting="True">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="details.aspx?ID={0}" DataTextField="designerName" 
                HeaderText="Name" />
            <asp:BoundField DataField="designerGender" HeaderText="Gender" 
                SortExpression="designerGender" />
            <asp:BoundField DataField="designerInfo" HeaderText="Info" 
                SortExpression="designerInfo" />
            <asp:BoundField DataField="designerWebsite" HeaderText="Website" 
                SortExpression="designerWebsite" />
            <asp:ImageField DataImageUrlField="designerPic" HeaderText="Picture">
                <ControlStyle CssClass="DesignersPic" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="nd_dataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:nd_connectionString %>" 
        ProviderName="<%$ ConnectionStrings:nd_connectionString.ProviderName %>" 
        
        SelectCommand="SELECT [designerName], [designerGender], [designerInfo], [designerPic], [designerWebsite], [ID] FROM [nd_table]">
    </asp:SqlDataSource>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
</asp:Content>
